import { CSSProperties } from "react";

export type Key = string | number | string[] | number[] | null;

export type CommonComponentProps = {
  className?: string;
  style?: CSSProperties;
  value?: Key;
  defaultValue?: Key;
  onChange?: (value: Key, others?: any) => void;
};

export type CommonComponentResult = {
  val: Key;
  action: (v: Key) => void;
  className: string;
  style: CSSProperties;
};
